<template>
  <div class="info_chunk">
    <a-form-item :label="formData.hideTitle ? '':`${formData.name || ' '}`" :colon="formData.name ? true: false" :required="formData.required" :extra="formData.desc">
      <a-select :value="formData.defaultValue" :disabled="formData.disabled" :allow-clear="formData.allowClear" :placeholder="formData.placeholder" style="pointer-events: none;">
        <a-option v-for="(item,index) in formData.opts" :key="index" :value="`${item.key}`">
          {{ item.value }}
        </a-option>
      </a-select>
    </a-form-item>
  </div>
</template>

<script>
export default {
  name: 'TreeSelectInfo',
  props: {
    formData: {
      type: Object,
      default: () => {}
    }
  }
}
</script>
<style scoped lang="less">

</style>
